﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xant.FlowEngine.Interface
{
    public interface IOrganizationLocator
    {
        void RefreshData();

        IOrganization FindOrganization(object id, bool autoLoad = true);

        IStaff FindStaff(object id, bool autoLoad = true);

        IStaffMember FindStaffMember(object organizId, object staffId);

        IEnumerable<IOrganization> RootOrganizations { get; }

    }

}
